provider Spike Protection POST /api/0/organizations/{organization_id_or_slug}/notifications/actions/
@utdk/sentry /api/0/organizations/{organization_id_or_slug}/notifications/actions/
Create a Spike Protection Notification Action
Creates a new Notification Action for Spike Protection. Notification Actions notify a set of members when an action has been triggered through a notification service such as Slack or Sentry. For example, organization owners and managers can receive an email when a spike occurs.
organization_id_or_slug path required
The ID or slug of the organization the resource belongs to.
string

Try it

Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

createASpikeProtectionNotificationAction
POST/api/0/organizations/{organization_id_or_slug}/notifications/actions/
Creates a new Notification Action for Spike Protection. Notification Actions notify a set of members when an action has been triggered through a notification service such as Slack or Sentry. For example, organization owners and managers can receive an email when a spike occurs.

Parameters

required

The ID or slug of the organization the resource belongs to.

Input

required

Type of the trigger that causes the notification. The only supported trigger right now is: `spike-protection`.

required

Service that is used for sending the notification. - `email` - `slack` - `sentry_notification` - `pagerduty` - `opsgenie`

ID of the integration used as the notification service. See [List Integrations](https://docs.sentry.io/api/integrations/list-an-organizations-available-integrations/) to retrieve a full list of integrations. Required if **service_type** is `slack`, `pagerduty` or `opsgenie`.

ID of the notification target, like a Slack channel ID. Required if **service_type** is `slack` or `opsgenie`.

Name of the notification target, like a Slack channel name. Required if **service_type** is `slack` or `opsgenie`.

List of projects slugs that the Notification Action is created for.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import sentry from '@utdk/sentry';

await sentry.createASpikeProtectionNotificationAction()